postResult
inline suspend fun <T> HttpClient.postResult(urlString: String, noinline block: HttpRequestBuilder.() -> Unit = {}): Result<T>
Performs an HTTP POST request synchronously and returns the result as a Result of type T.
Return
Result
Parameters
urlString
The URL for the POST request.
block
Optional, allows customization of the request using HttpRequestBuilder.